﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mysoft.QuickCode.Common
{
    /// <summary>
    /// .NET3.5中的可空类型扩展
    /// </summary>
    public static class Nullable_1Extension
    {
        /// <summary>
        /// Guid?类型是否为空或默认值
        /// </summary>
        /// <param name="g"></param>
        /// <returns></returns>
        public static bool IsNullOrEmpty(this Guid? g)
        {
            return g == null || g.Value == Guid.Empty;
        }
    }
}
